package com.wnxy.pawnbackgroundsystem.service;

import com.wnxy.pawnbackgroundsystem.dto.userDto.AccountLogin;
import com.wnxy.pawnbackgroundsystem.dto.userDto.PhoneLogin;
import com.wnxy.pawnbackgroundsystem.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.pawnbackgroundsystem.param.UserParam;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2021-10-14
 */
public interface IUserService extends IService<User> {
    public String qqLogin(String code);//qq登陆
    public UserParam accountLogin(AccountLogin accountLogin);//账号登陆
    public UserParam phoneLogin(PhoneLogin phoneLogin);//手机号登陆
    public UserParam findUser();//查询当前登陆用户信息
    public String phoneCode(String phone);//手机号发送验证码
    public void chekeCode(String code,String phone);//检验验证码
    public UserParam updateLoginSuccess(User user,String loginType);//登陆成功后参数修改
    public User findUserName(String username);//账号查询
    public User findPhone(String phone);//手机号查询
    public UserParam findUserById(Integer userId);//id查询
}
